{% extends "base.html" %}
{%block title%}Analiza prehodnosti{% endblock %}
{% block content %}

{% if params_sel %}

Izberi parametre za prikaz<br />
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Prikaži" />
</form>
{% else %}

{% include "snippets/core/print.htm" %}

<b>Program:</b> {% if display.program %} {{ display.program }}{% else %}Ne glede{% endif %}<br />
<b>Način študija:</b> {% if display.study_type %} {{ display.study_type }}{% else %}Ne glede{% endif %}<br />
<b>Vrsta:</b> {% if display.enrollment_type %} {{ display.enrollment_type }}{% else %}Ne glede{% endif %}<br />
<b>Letnik:</b> {{ display.student_year }}<br />

<h2>Prehodnost iz {{ display.student_year }}. letnika v naslednji letnik v štud. letu {{ display.school_year }}</h2>

<table class="list" style="width:90%">

  <tr>
    <th>&nbsp;</th>
    <th>&nbsp;</th>
    <th align="right">Število vpisanih</th>
    <th align="right">Odstotek</th>
  </tr>
  <tr>
    <td>{{ display.school_year }}</td>
    <td>Vpisani v {{ display.student_year }}. letnik</td>
    <td align="right">{{ data.number_first_year }}</td>
    <td align="right">{% if not data.number_first_year %}0%{% else %}100.00%{% endif %}</td>
  <tr>
  <tr>
    <td rowspan="3">{{ display.school_year_next }}</td>
    <td>Ponovni vpis v {{ display.student_year }}. letnik</td>
    <td align="right">{{ data.number_second_year_again }}</td>
    <td align="right">{{ data.number_second_year_again_percent }}%</td>
  </tr>
  <tr>
    <td>Nevpisani</td>
    <td align="right">{{ data.number_second_year_no_more }}</td>
    <td align="right">{{ data.number_second_year_no_more_percent }}%</td>
  </tr>
  {% if display.next_student_year %}
  <tr>
    <td>Napredovali {{ display.next_student_year }}. letnik</td>
    <td align="right">{{ data.number_second_year_next }}</td>
    <td align="right">{{ data.number_second_year_next_percent }}%</td>
  </tr>
  {% endif %}
</table>

{% endif %}


{% endblock %}>
